package com.kushe.util;

import com.kushe.entity.Message;
import com.kushe.entity.Notice;

import java.util.List;

/**
 * Created by WhiteBlue on 15/5/21.
 */
public class SessionEnv {
    private List<Message> list_message;//私信消息
    private List<Notice> list_notice;//留言消息
    private List<Notice> list_order;//订单消息


    public void setList_message(List<Message> list_message) {
        this.list_message = list_message;
    }

    public List<Notice> getList_order() {
        return list_order;
    }

    public void setList_order(List<Notice> list_order) {
        this.list_order = list_order;
    }

    public void setList_notice(List<Notice> list_notice) {
        this.list_notice = list_notice;
    }

    public List<Message> getList_message() {
        return list_message;
    }

    public List<Notice> getList_notice() {
        return list_notice;
    }

    public boolean getFlag() {
        if (list_message.isEmpty() && list_notice.isEmpty() && list_order.isEmpty())
            return false;
        else
            return true;
    }
}
